using System;

namespace TravelAgency
{
    public static class Travel
    {
        public static double CalculatePrice(int month, bool isFlight)
        {
            const double originalPrice = 8800.0;

            bool isHighSeason = month >= 5 && month <= 10;

            double discount;
            if (isHighSeason)
            {
                discount = isFlight ? 0.9 : 0.75;
            }
            else
            {
                discount = isFlight ? 0.6 : 0.3;
            }

            double finalPrice = originalPrice * discount;
            return Math.Round(finalPrice, 2);
        }
    }
}